#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>

void* my_memcpy(void* arr2,const void* arr1,int num)
{
	assert(arr1 && arr2);
	char* a = arr1;
	char* b = arr2;
	for (int i = 0; i < num; i++)
	{
		b[i] = a[i];
	}
	return arr2;
 }

int main()
{
	int arr1[] = { 3,1,9,2,7,2,5,0,3,0 };
	int arr2[10];
	int n = sizeof(arr1);
	my_memcpy(arr2, arr1, n);
	int len = n / sizeof(arr1[0]);
	for (int i = 0; i < len; i++)
	{
		printf("%d ", arr2[i]);
	}
	return 0;
}